several bug fixes and also test out deviceorientation event