adds resources. Updates views