fixed startup issues and moved to new main page model