added messages store to be session instead of cookie