Make alert button work