modal image max-width and max-height sucks
ignore clicks better
wow, forgot a replace state
refactor streams/history.js