Creating handler for child route