changed resizing code to IBOutlet constraint