check orientation and touch