Added logic for 'My suggestions' page.
refactored code