added party toggle functionality