Using 8 On/Off buttons to control 8 relays

Rather then answer your question I will highly recommend you get the Arduino Cookbook and skim it cover to cover. Pause on the sections relative to your project. Rest assured you will have solved your problem by the time you come to the end of it.