work counter added, further refactor on gui class