Fix the issue of missing buttons in desktop Mode and some optimizations