improve layout for maximizing