fix spinner position and add sleep() helper