refactoring details view routing