for active button click