added logic for statuslabel
removed #/
building queries for columns