added resource loading code and basic gui components