reformat code
stop refreshing when navi to other directory