added controller example for ajax widget