update empty widgets array + some whitespace cleanup