adding scrolling to error element insted of saying in alert message and fixing js load in edit mode error