moved angular parts of the details page into a separate file