Inventory window functionality

Minor bug fixes, dynamic inventory window implementation