function updates

updated the click functions to use the on() jquery function so that I
could use the trigger function to simulate a click to change the css.