found single click function putted expand in that function