detail view with cursor (my solution)