adding Function Permission