Refacotring, removed root:loading and root:flash events and replaced them with direct method usage, code cleanup and more