admin javascript improvements
layout cleaning , add button when empty