fixed safari resize bug and mobile safari bug (maybe)
added back noah's changes