ajax method for determining whether to display the lines and/or bulks sections