adding optional parameters to view
fixing permissions
adding name to optionals