bug fixies in views