we want to have friendly urls so add in front controller code.