move controller's view setting to viewdidload