improve navigation validation, declare framecontent as global element