Correction to methods in main activity