reset tab when changing part type

fixes #169