fixed buttons; removed duplicate variable