added transitions to the styling of the button palette and added msup template handler to the insertTemplate function and ProcessKeyPress even handler