Anchor elements were not working properly inside the nested divs