Added checks for Edit and Destroy links