changed tick marks to segment, tried to fix errors after computer sleeps upon return and page visibility