phase 3

add back button to go mainwindow
and make window better by database
and comment the code for readable