got main page working