adds form contents for modal