updated add this code for main site and mobile site