Added plugin tw_pagination support + some changes