Use greet in appcontroller