full code for site still need to add comments and fix adminstration