Fix page legend and back button to previous page