Move code to application.html
Add new capybara for entering public URL