set the edit&delete buttons actions