remove unused functions, add custom post type for portfolio