added option timeAutoclose