removing bugs in view