added tooltip in statusbar, and automatic resources cost