added profile in api controller