get latest product function
converting display of products in main page to ajax
fix function to get latest products