fix history view and make detail view, add top bar to history view