fix white space around edges and other spacing problems