cleaning code and adjustment for cross site issue

adjust the filter. php and cleaning source code