Implemented two options menu actions: refresh and logout.