initial GET and POST logic