fixed the layout inconsistencies