Fixed warnings in Main activity