added sweet-alert when page ready