initialize state in application