add statepicker and task service.
init state of some models.