adding permission modal
forgot to add modal partial
adding json support for generic file show view