toggling newpost visibility with angular