added mobile orientation checks