Add Back button and appropriate logic for it