code and preview popup size fixed