scoping jQuery events
cleanup
Making pages list view usable. Fixes #433