fixed an issue that did not add the contraints to the view