complete task #26 add spring
refactor in spring
add spring bean for main frame