added styling and preservation of data after refresh