refactor the code and add hdfs tab
add hdfs tab