added filters and fixed xmlhttprequest premission error