example using url path as flag for logged in, using button and post parameter as flag for activingly editing