added timeout functionality, so purchase screen times out if inactive for a certain period of time after adding or removing an item