fixed for ipad and style improvements