fixed main layout for groovy