Added alerts and redirects. It just needs making pretty