code refactor for back view of 2nd menu