added like button and sort by likes function