open button works properly