Changed order of functions within the file...easier to follow maybe?
Fixed error that occurs if user clicks the button multiple times in rapid
succession.