refactoring show view