Gerneated profile controller
fixed a few errors