Main and input activity