finish input activity