logout and views for home page