combined post and get binding logic