added custom admin functions and seo optimize functions