updated view file so it's like glutwrapper example.. CONTAINS ERRORS