fix open buttons behavior