finish a part of the MainActivity