added logout button to the index page