added possibility to attach file to devi in views