Why changes are not reflecting in preview mode?