implemented logic for content model detect and admin page