set startpage as startpage
fix ternary operator -.-