change sidebar extension methods to provider class