fix button bug with index and post page