many changes. also, a partially working php action. needs ajax