added small fixes; sorting now fixed, popups now close automatically and...

... forms cleared