-Updates seated from null to 1 in candidates table if candidate is
seated.
-Finally prevented multiple windows from opening by using dispose()
method.