Refactored the provider app action definitions in js controller