Added check to edit only allowed map