seperated html (view) from backend php, fixed filtering