change in attribute when adding null option type change in index view