Add dialog when ejecting sdcard

Remove some dead code
6 files changed