Several Fixes

Fix save for device and Eoc
Added listener on eoc type box
Added Ad Gateway Button