some fixes

The gui is showen, but not working, yet. Will go back to work later :D