Helper for generate button with action