how to use controller creation