Swaps close and minimize buttons in modal