updated show per page feature to use ng repeat and ng class