add sync over tabs, fix buttons bug