Create and implement the 'leavegroup' widget