adding a layout and back button