replaced resource dictionary with theme class