I don't quite understand what should I do. Do you want me to modify the group view to always show the button even if last owner, point the leave group button to the profiles leave URL, and let it open a popup if you are the last owner?