Fix/gui

Please review @mkurek.
allegro?