added clicking input for front-end