added basic iPad support and some adjustments