added twitter functionality and parent model