fix the top layout