source code edited
added buttons