create directive select-mod
remove obsolete code
update spell list view and state