Check connectivity, display messages and stop rotation on main activity