account for screen offset when finding button idx