FF: code component open-to-page

- could get page -1 if had some code then deleted it (fixed by max)
- ignore whitespace for purposes of selecting the page