Fix warnings
Fix return datatype in ajax call
Remoe alerts