fix resource show broken layout