added seperate pages and started nav
fixed submit, width and added cases instead of an if statment