Save tags after every command
Rename selected to selectedTags
Added more values to the state class
Move dependencies into State class