fix some layout problems on detail screen