generate profile controller