add class handing to action/button template