Refactoring to send  message when data is fully load