update tests
refactor paste index view