added check perms method with view
fixed photos common view
added fancybox