moved require.config in main
fixed bug: show message when data not present