add frmmain next pre
add indextemple from