add cssClass option
support custom template option