changed moment to hide loading widget