buttons now working to set custom flow and pain