#86 detail view: fixed layout bugs