Added alerts scaffolding and it responds to html and json