added details view functionality