LOG STATEMENTS bug fixing: fixed back bug! fixed popup bug!