Refactor the frame-prepare
add resource bundles for main frame