closing dropdown when toggle curtain and vice/versa