generate greetings controller