Create listener for loader