Active button class and close modal on tap