Used previous_posts_link() and next_posts_link() as without them wordpress does not pass your theme