Added save alerts and fixed null errors.