fixing event categories
fixed edit event popup from going off screen