Structure description for invert method corrected and UI button actions added