Generate profiles controller