refactor swapsy into viewmanager