removing unnecessary joins to tables
removing useless code, default sorting at library View