Hid Bootstrap
Refactored AJAX calls into funcctions