Modify dom structure to match web-app, and make selection work.