Implemented back button (could be buggy)