Modified and fixed dialog

Modified non-standard  class naming;
Fixed resize bug;
Added top and left properties.