move processing in postTab out of handler