It should also say
void handleOnTabSelected(Event event) instead of void handleOnTabSelected(ActionEvent event)