sorting domains. adding edit and delete buttons