added onbrushSelection callback. changed work dir.