added reference remove button, and reference ordering, also lots of bugfix on admin panel