changed the logic of update command as model signal
Merge pull request #1 from fatiherikli/master

Added model signal to update index