add close handler
remove mustache dependency