added some checks that allow code to run and fixed sherlock theme
added history button to settings menu