working with main page