enhance preview and delete.

1. enhance preview and delete function.
2. edit block template, not finished.