event get and post prototypes working