making magic buttons