handling orientaton change

Signed-off-by: Jose Ayerdis <joseayerdis@gmail.com>