Moving margins to globals