Fixing line bugs and adding draw line button