added create function in thread_controller.php