Updated edit resource, handle hide preview better. See Ticket 285.