Fixed bugs and view stuff.