Generate profile controller