REV: add message box showing functions for front-end js