Suggestions needed for UFT11.5 version code

I have 3 links in a webpage. Each link does different functionality. I created separate functions for each link. But while recording I messed up and the browser and page heirarchy got changed and object repository doesn't recognise the browser anymore. Is there any better way to record so that each link functionality doesn't depend on the heirarchy?