weebly sample refactor