Refactoring and clear code lamp-page