Added hint functionality to view and controller file