fixed view compiling issues