Refactored post to index to reduce complicated logic

Signed-off-by: Cory Leistikow <cory.leistikow@gmail.com>