fixed recommendation functions and applied to page

fixed recommendation functions and applied to page