Added undo functionality
Show error messages in case of invalid palette names