adding close button, updating html titles, putting together basic error messaging