added initial state update when visiting homepage