Created Function editing dialog.
Created Visibility flag for functions.