fixed view rendering. Now to finish the ui.