added find_all method to api and instance var in controller