added logout button

added logout button with dialog box for confirmation
removed compatibility before ice cream sandwich