Added some functionality to courier page. TODO: fix form submitting