added logout, show event, improved usability