slight refactoring of the post swiping method. color change on the sidebar link