Simple hacks to use Ajax instead of redirecting.