How to save states in custom view