Added return to main activity after action executed. Bug fixed on onfocuschanged event