reworked gui, added resources, rebased