Recent app go back to mainactivity instead of reopening popup dialog