added removeclass and addclass active to click event