added method to api controller to add keyword