adds appointment actions with js