logic for jumping around screens