some view bugs fixed