implement new and open buttons