add interface to MainActivity.