added fn_generate_key to menu route