added button pics
added graph switching function