fixed small layout bugs in the case fragment.