Secured gentxt, added flagging and goal viewing