Fixed mail deletion js and autoupdate.