Added back button code

Added code for the back button.... It's hard to tell if it works though,
because Vincent broke my search function