Added cascade deleting and  search page