Implement jquery script on moderate page to make it work like before