add native methods to main activity