fix bug in width-bug in main, and add z-index to fix overlap-issue