adding bootbox and fixing JS for ajax call on admin page