android: update view code refactor