Added Function to Remove lines from View and get Number of lines