added gui and parametrized buttons