refactored render code to handle new binding implementation