prepare for ajax polling message count in sidebar