added jquery bindings for click events