Adding home button and sorting out the slide functions