Built pagination + flash messages