moving config form to viewDidLoad