fixed filter popup firefox bug
changed sql queries