front-end code for lazylawyer