add fps event listener at the right spot