Optimizing searchToolbar to call datainit and events using the common code in common module