refactored js on prevention plans page for minus and plus icons