further worked to define the appropriate actions with jquery.