add markup for new and edit page. Add attachments from remote url