Added detail views and logic