only show edit button when logged in (!!!) and minor fixes