added sleep to simulate loading