added allocation of pressed element