refactor details to view only