When ending a level, we clean out the function-gui