removed unused leftovers from modal