How to update draft selected view by code??