preview btw function updated, other tweaks