moved DOM logic from app/router into view prototypes