Device orientation handler, that is easy to use