adding some rudimentary click logic