add possibility to add multiple afterrender hooks