def preview

    element=params[:element]
    sample=Sample.find_by_id(params[:id])