You can't access controller before dom updae