Factor out cancel-button class