refactor fps control and add click handling on targets