converted SessionManager and AlertDialogManager to implement singleton
design