limit clicking times in front-end