resolving the like button toggle issue