fixing detail view