bug fixes in view