Add actions before and after widgets