Refactoring show-in code