several changes for view behavior