removed extraneous click function