add functions for recent post and recent project