added basic rednering, resizing