added details controller and show code