added CRUD methods to components controller
fixed create method