Share functionality with buttons