bug fix: gui receiving input in other states

Signed-off-by: serengeor <serengeor@gmail.com>