Close navbar plugin onclick