token and edit page fixes

Signed-off-by: Thejasvi Bhat <thejasvi@smashed.in>