Render method works and html is now updated with the render method. Redundant alerts removed.