added inactivity switch to wait screen