add $readView function
add $attach function to customize options initialization