ajax messages and template finally and truly working