types controller was added and declared as a resource