use if statement in template instead of using inclusion_tag in index.html, to simplify modify part of the template, still need to learn how to get posted data from template and pass them to views for modify use