fixed views bugs