Added the thumbnail functionality in every page