Started implementing sync provider and fixed app crash