fixed some issues with swapping views and pixmap locations