fixed relations value, extracted pagination plugin, improved things and deprecated the basic theme