refactored button clicks to avoid extra use of functions - just call function like so .click(function);