Create controller with method.html

Made a controller with a method outside of it.