changed how editing was done and some css stuff