Add custom app closure && set default value for top_time