updated guest document and added click events