added toggleClass method