ISSUE-#10. Add relations and ajax upload