Fixed bug where NewBooking tab did not get closed after switching tab
Added javadoc comments to some functions