Refactored cast-button events