bug fixes in views