passing entry callback from angular controller to menu