added allocation of pressed element
added allocation of pressed element