added foreign key fields, and made create page