updating functionality

cleaned up a lot of functions and separated the style sheets