updated code includes study spot viewing screen