fix bugs in updated views