added states for data entry