refactor css, adjust detail view for imports and mappings