converting templates to slim, find out how all types can share a
controller