Change the find with find_by_app_id