added margins to boxes