Anthony Hayes appointed caretaker manager