add function structure outside any handle_* function to whether user's active
add function structure outside any handle_* function to whether user's active

CMPT276-2016spring/phaser,CMPT276-2016spring/phaser,CMPT276-2016spring/phaser