added scroll to restricted and fixed off by one error for criteria