fixed pforile name bugs and generated profile controller