Prevent page reload when choosing a color created by the user