made door/button logic