optimized dialog button loading,removed useless files