moved constraints to the viewWillLoad instead of viewDidLoad