Worked on class remove working for dynamically added classes