copied code to files, separated stylesheet