Fixed render method to iterate through dictionary