fix put and delete for collection controller