Refactoring
Move toggle form function to common helper
Add extra_value to piece_setting
Revise view