Fixing site list saving bug

Site saving errors fixed. Page could be made to refresh its contents on save just to show this working. For now when you refresh the options it shows the site list without the blank lines.