Edited Post Types File to be more dynamic