added home and logout functionality