changing Catch cur log and adding button