added archive post functionality