fixed create initial page and setting active