refactored api callback handling on search tweets