Updated Alert model, implemented JSON output for some views