fixing up frontend to be more client controlled
simplified template and moved bulk of markup to client side