Added clear queue button and fixed template default dir path error.