15th commit

1. fix button listeners in EditActivity, now it works properly
2. draw line chart according to interval values (i.e. days between two
periods) generated from DB is almost done.