Updates to show sync status on main page and some bug fixes