Added dynamic creating of html objects