init of preview component
implemented stay-collapsed param in collapse event
fixed bug