added menu logout and ProgressDialog