fix indentation and controller