added screen orientation support