allow other file extensions than pdf in observer