adapt for rwd based themes.