Testing with handler to create controller

I'm currently attempting to create a controller which then can use a
view. Works partially.