fix js style. fix bug: should not display some buttons when there is no lists