Screen orientation function was implemented