Update input.php, halfway implementing the first two buttons
Merge with code from Leen