remove used directories and add views