Moved create code to create controller