check filename when creating new files
use html5 history