working with widiget to load main page first