webadmin: Fixed Add/Edit Network logic

The implemented logic was only right when adding a new network, fixed
it a little. Also, some small aesthetic changes.

Change-Id: I192b0213a8b9207b69364677ddb6e59874240b60
Signed-off-by: Lior Vernia <lvernia@redhat.com>