work with main page and goods view