Changing hard coded to inline html