added class fro button to trigger function