Added idynamic integration with the API for fetching widget categories and refreshing widget input data