Removed extra html generation code and put on html since it's static