refactored classes to integrate pg frontend methodology
changes styles