adding widgets and main pages