merge custom variables faster into hash

instead of looping, just use the perl way of transforming a list into a hash.
add action menu based on custom variables