fix weird issues with margins and spacing