Fix controller attachment to DOM