improved front end/responsive, redirect working with PHP