added sync button and pending messages count