MainActivity dialog bug fixed