Implemented Back button

Implemented Back button to all the pages