added support for line numbers in gui