UI: change some code of storage add page

Actually there is no bug.
But we think, we can improve the codes.
We can remove the reduplicate codes.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>