Fix compatibility issue with some themes
initial commit for recently viewed