removed initial update of gui_state, added space to after function end to follow pep8