client: fix preview refresh, cleanup css