adding action attribute for Button Widget