optimized layout to prevent floating problems