changed visibility of getter in MainActivity to protected