added fitness window and event handler for scanner