added add bed functionality