added log functionality in gui