fixed two bugs with view list and view detail