fixed minor bug in workout_tracker. Moved the  variable up a level so it could be used by several if blocks