refactoring renderProperties out of attach