added ActiveRecord clear to controller