Tidwell leaving Lamar for UT Pan American