added editable links and combined it with attachments

refactored page model
added tests