fixed selection behaviour

Fixes #180.
Merge branch 'master' of github.com:crantila/vis

Conflicts:
	views/main.py