Fix placeholder style and auto set state in the model.