added dismiss keyboard button on iphone
made configurations different for iphone vs ipad