Managing requests for flexible working by staff fairly and legally